package com.zhxt.web.controller.zhxtapi;

import com.zhxt.common.core.controller.BaseController;
import com.zhxt.common.core.page.TableDataInfo;
import com.zhxt.system.domain.zhxtvo.ZhxtWater;
import com.zhxt.system.service.IZhxtService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 数据处理查询
 */
@RestController
@RequestMapping("/zhxtapi/zhxt/")
public class ZhxtAdminController extends BaseController {
    @Autowired
    private IZhxtService iZhxtService;

    /**
     * 查询数据同步流水
     */
    @PostMapping("/getTbWater")
    public TableDataInfo getTbWater(){
        startPage();
        List<ZhxtWater> zhxtWaterList=iZhxtService.getTbWater();
        return getDataTable(zhxtWaterList);
    }
}
